package testpat;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class TestPatTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		System.out.println("SetupBefore");
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		System.out.println("SetupAfter");
	}

	@Before
	public void setUp() throws Exception {
		System.out.println("Before");
	}

	@After
	public void tearDown() throws Exception {
		System.out.println("After");
	}

	@Test
	public void testPat() {
		System.out.println("Test1");
		TestPat testPat = new TestPat();
		assertEquals(2, testPat.pat("asdfg".toCharArray(), "dfg".toCharArray()));
		//fail("Not yet implemented"); // TODO
	}
	
	@Test
	public void testPat2() {
		System.out.println("Test2");
		TestPat testPat = new TestPat();
		assertEquals("sdfgd", testPat.pat("asdfg".toCharArray(), "dfg".toCharArray()));
		//fail("Not yet implemented"); // TODO
	}

}
